<template>
  <div class="paramsDialog">
    <el-dialog
      title="对接参数"
      :visible.sync="isVisible"
      :close-on-click-modal="false"
      :close-on-press-escape="false"
      :modal-append-to-body="false"
      @close="closeDialog"
      width="28%"
      center
    >
      <el-form :model="dialogRow" :label-width="dialog.formLabelWidth">
        <el-form-item label="游戏名称：">
          <el-input v-model="dialogRow.gamename" autocomplete="off" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="app_id(游戏ID)：">
          <el-input v-model="dialogRow.app_id" autocomplete="off" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="app_key(游戏KEY)：">
          <el-input v-model="dialogRow.app_key" autocomplete="off" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="client_id(客户端ID)：">
          <el-input v-model="dialogRow.client_id" autocomplete="off" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="client_key(客户端KEY)：">
          <el-input autocomplete="off" :disabled="true" v-model="dialogRow.client_key"></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="isVisible = false">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      isVisible: this.isShow,
      dialog: {
        formLabelWidth: "160px"
      }
    };
  },
  props: {
    isShow: Boolean,
    dialogRow: Object
  },
  methods: {
    closeDialog() {
      this.$emit("closeDialog");
    }
  }
};
</script>
<style lang="scss">
.paramsDialog {
  .el-form-item__label{
    padding: 0;
  }
  .el-input__inner{
    padding: 0;
  }
  .el-input.is-disabled{
    width: 100%;
  }
}
</style>